/**
 * @USER: Administrator
 * @DATE: 2024/9/20 下午7:16
 * @VERSION: 1.0.0
 */
public class LC674 {
    public int findLengthOfLCIS(int[] nums) {
        int longestAsc = 1;
        int asc=1;
        for (int i = 1; i < nums.length; i++) {
            if (nums[i] > nums[i - 1]) {
                asc++;
            }else {
                asc = 1;
            }
            if (asc > longestAsc) {
                longestAsc = asc;
            }
        }
        return longestAsc;
    }
}
